עִם־חָסִ֖יד תִּתְחַסָּ֑ד עִם־גִּבּ֥וֹר תָּמִ֖ים תִּתַּמָּֽם׃
With the merciful Thou dost show Thyself merciful, With the upright man Thou dost show Thyself upright,
Read Jewish philosophical commentary on II Samuel 22:26: and classical philosophical sources.